package com.xcity.pomelo.response;

import naga.x.net.impl.pomelo.PomeloMessage;
import naga.x.net.impl.pomelo.protocol.Message;

@PomeloMessage(type = Message.Type.RESPONSE)
public class HintResponse extends Response {

	protected String msg;
	
	public HintResponse(int serial) {
		this(serial, null);
	}
	
	/**
	 * error response
	 * @param serial
	 * @param msg
	 */
	public HintResponse(int serial, String msg) {
		this(serial, CODE_ERROR, msg);
	}
	
	public HintResponse(int serial, short code, String msg) {
		super(serial, code);
		this.msg = msg;
	}

	public String getMsg() {
		return msg;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}
	
}
